<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%String path = request.getContextPath() ;%>
<%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c" %>
<%@ taglib uri="/WEB-INF/tld/ui.tld" prefix="ui" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>新增/修改法人信息</title>
    <jsp:include page="../../import.jsp" flush="true" />
    <style type="text/css">
        .td{
            height:30px;
            text-align:center;
            width:18%;
        }
        .td div input,select{
            width:60%;
            -moz-border-radius:5px;
            -webkit-border-radius:5px;
            -ms-border-radius:5px;
            -khtml-border-radius:5px;
            border-radius:5px;
        }

    </style>
</head>
<body class="iframeBody">
<div class="Wrapper">
    <div>
        <div id="pageInTab" class="pageInTab">
            <div tabid="tabA" title="基本信息" lselected="true">
                <form id="formSet1">
                    <div class="fieldset1 tabel_col clearFix">
                        <div class="caption">
                            <span class="title">基本信息</span>
                        </div>
                        <div class="fieldBox col_33">
                            <div class="label">客户类型</div>
                            <div class="field">
                                <!-- <span class="requiredSymbol">法人</span> -->
                                <span id="cstTypCdNm" name="cstTypCdNm"></span>
                            </div>
                        </div>
                        <div class="fieldBox col_33">
                            <div class="label">企业名称</div>
                            <div class="field">
                                <span id="cstNm" name="cstNm">&nbsp;</span>
                            </div>
                        </div>
                        <div class="fieldBox col_33">
                            <div class="label">客户关系</div>
                            <div class="field test_combo">
                                <span id="cstRlTypNm" name="cstRlTypNm">&nbsp;</span>
                            </div>
                        </div>
                        <div class="fieldBox col_33">
                            <div class="label">证件类型</div>
                            <div class="field">
                                <span id="certTypCd" name="certTypCd">&nbsp;</span>
                            </div>
                        </div>
                        <div class="fieldBox col_33">
                            <div class="label">证件号码</div>
                            <div class="field">
                                <span id="certNo" name="certNo">&nbsp;</span>
                            </div>
                        </div>
                        <div class="fieldBox col_33">
                            <div class="label">法定代表人</div>
                            <div class="field">
                                <span id="lowerCstNm" name="lowerCstNm">&nbsp;</span>
                            </div>
                        </div>
                        <div class="fieldBox col_33" style="display:none">
                            <div class="label">证件类型</div>
                            <div class="field">
                                <select name="tcorpForCertTypCd" id="tcorpForCertTypCd">
                                    <c:forEach items="${searchSelectCertTypCdForNpList }" var="kv" begin="0" step="1" varStatus="status">
                                        <c:if test="${status.index == 0}">
                                            <option value="${kv.key }" checked >${kv.value }</option>
                                        </c:if>
                                        <c:if test="${status.index != 0}">
                                            <option value="${kv.key }">${kv.value }</option>
                                        </c:if>
                                    </c:forEach>
                                </select>
                                <span class="requiredSymbol">*</span>
                            </div>
                        </div>

                        <div class="fieldBox col_33">
                            <div class="label">证件类型</div>
                            <div class="field">
                                <select name="corpForCertTypCd" id="corpForCertTypCd">
                                    <c:forEach items="${searchSelectCertTypCdForNpList }" var="kv" begin="0" step="1" varStatus="status">
                                        <c:if test="${status.index == 0}">
                                            <option value="${kv.key }" checked >${kv.value }</option>
                                        </c:if>
                                        <c:if test="${status.index != 0}">
                                            <option value="${kv.key }">${kv.value }</option>
                                        </c:if>
                                    </c:forEach>
                                </select>
                            </div>
                        </div>
                        <div class="fieldBox col_33">
                            <div class="label">代表人证件号码</div>
                            <div class="field">
                                <span id="lowerCertNo" name="lowerCertNo">&nbsp;</span>
                            </div>
                        </div>
                        <div class="fieldBox col_33">
                            <div class="label">企业简称</div>
                            <div class="field">
                                <span id="shtNm" name="shtNm">&nbsp;</span>
                            </div>
                        </div>
                        <div class="fieldBox col_33">
                            <div class="label">注册电话</div>
                            <div class="field">
                                <span id="regTel" name="regTel">&nbsp;</span>
                            </div>
                        </div>
                        <div class="fieldBox col_33">
                            <div class="label">办公电话</div>
                            <div class="field">
                                <span id="officeTel" name="officeTel">&nbsp;</span>
                            </div>
                        </div>
                        <div class="fieldBox col_33">
                            <div class="label">办公用房使用权面积</div>
                            <div class="field">
                                <span id="officeArea" name="officeArea" ligerui="width: 110">&nbsp;</span>
                                <span class="requiredSymbol">平方米</span>
                            </div>
                        </div>
                        <div class="fieldBox col_33">
                            <div class="label">房产属性</div>
                            <div class="field">
                                <span id="prpAttr" name="prpAttr" ligerui="width: 110">&nbsp;</span>
                            </div>
                        </div>

                        <div id="cstGuarDynamicBizdiv">
                            <%-- <jsp:include page="../cstdynamic/cstGuarDynamicPage.jsp"></jsp:include> --%>
                        </div>

                        <div id="cstGuar1DynamicBizdiv">
                            <%-- dynamic1 field --%>
                        </div>

                        <div class="fieldBox col_33">
                            <div class="label">是否事业单位</div>
                            <div class="field">
                                <span id="isInst" name="isInst">&nbsp;</span>
                            </div>
                        </div>
                        <div class="fieldBox col_33">
                            <div class="label">开户许可证核准号</div>
                            <div class="field">
                                <span id="perMitNo" name="perMitNo">&nbsp;</span>
                            </div>
                        </div>

                        <div class="fieldBox col_33" id="othIndCdDiv">
                            <div class="label">还款方式</div>
                            <div class="field">
                                <span id="payTypCd" name="payTypCd">&nbsp;</span>
                            </div>
                        </div>

                        <div class="fieldBox col_33">
                            <div class="label">所属行业</div>
                            <div class="field">
                                <span id="indCdNm" name="indCdNm">&nbsp;</span>
                            </div>
                        </div>

                        <div class="fieldBox col_33">
                            <div class="label">经济行业分类</div>
                            <div class="field">
                                <span id="stdIndCd" name="stdIndCd">&nbsp;</span>
                            </div>
                        </div>


                        <ui:normalShowSpan pgCd="custCorpShowPage" cmpCd="custPagerMainShowForm" cmpDtlCd="cstLvlCd" orgCds="${orgCds }"></ui:normalShowSpan>
                        <div class="fieldBox col_33" style="display:none">
                            <div class="label">成员类型</div>
                            <div class="field">
                                <select name="mTypCd" id="mTypCd" data-value=""
                                        validate="{required:true, select: true}">
                                    <c:forEach items="${searchSelectMTypCdList }" var="kv" begin="0"
                                               step="1" varStatus="status">
                                        <c:if test="${kv.key != 1}">
                                            <c:if test="${status.index == 0}">
                                                <option value="${kv.key }" checked>${kv.value }</option>
                                            </c:if>
                                            <c:if test="${status.index != 0}">
                                                <option value="${kv.key }">${kv.value }</option>
                                            </c:if>
                                        </c:if>
                                    </c:forEach>
                                </select>
                                <span class="requiredSymbol">*</span>
                            </div>
                        </div>
                    </div>

                    <div class="sqPanel">
                        <div class="sqPanel_head inL">
                            <div class="btnsBox inLC" style="display:none">
                                <span id="cst_corp_team_add_btn_id" class="sq-button sq-button-round">添加</span>
                            </div>
                            <span>主要团队成员</span>
                        </div>
                        <div class="sqPanel_body">
                            <!-- <div id="ligergrid_members" class="sq-grid"></div> -->
                            <table style="BORDER-COLLAPSE: collapse;margin-bottom:20px" borderColor=#ECECEC height=40 cellPadding=1 width="100%" align=center border=1>
                                <thead>
                                <tr style="background:#E7FEF4">
                                    <td class="td">职务</td>
                                    <td class="td">姓名</td>
                                    <td class="td">证件类型</td>
                                    <td class="td">身份证号</td>
                                    <td class="td">电话</td>
                                    <!-- <td class="td">操作</td> -->
                                </tr>
                                </thead>
                                <tbody id="rows">
                                <c:choose>
                                    <c:when test="${id != null}">
                                        <c:forEach items="${teamMenList}" var="item">
                                            <tr>
                                                <td style="display:none">
                                                    <input name="teamId" id="teamId" type="text" value="${item.id}">
                                                </td>
                                                <td class="td">
                                                    <div>
                                                        <c:choose>
                                                            <c:when test="${item.mTypCd == 1 || item.mTypCd == 7 || item.mTypCd == 10}">
                                                                <select name="mTypCd" id="mTypCd" disabled="disabled">
                                                                    <c:forEach items="${searchSelectMTypCdList }" var="kv">
                                                                        <c:if test="${kv.key == item.mTypCd}">
                                                                            <option value="${kv.key }">${kv.value }</option>
                                                                        </c:if>
                                                                    </c:forEach>
                                                                </select>
                                                            </c:when>
                                                            <c:otherwise>
                                                                <select name="mTypCd" id="mTypCd" disabled="disabled">
                                                                    <c:forEach items="${searchSelectMTypCdList }" var="kv">
                                                                        <c:choose>
                                                                            <c:when test="${kv.key == item.mTypCd}">
                                                                                <option value="${kv.key }" selected="selected">${kv.value }</option>
                                                                            </c:when>
                                                                            <c:otherwise>
                                                                                <option value="${kv.key }" >${kv.value }</option>
                                                                            </c:otherwise>
                                                                        </c:choose>
                                                                    </c:forEach>
                                                                </select>
                                                            </c:otherwise>
                                                        </c:choose>
                                                    </div>
                                                </td>
                                                <td class="td">
                                                    <div>
                                                        <input name="teamNm" id="teamNm" type="text" readonly="readonly" value="${item.mNm}">
                                                    </div>
                                                </td>
                                                <td class="td">
                                                    <div>
                                                        <select name="tcorpForCertTypCd" id="tcorpForCertTypCd" disabled="disabled">
                                                            <c:forEach items="${searchSelectCertTypCdForNpList }" var="kv">
                                                                <c:choose>
                                                                    <c:when test="${kv.key == item.certTypCd}">
                                                                        <option value="${kv.key }" selected="selected">${kv.value }</option>
                                                                    </c:when>
                                                                    <c:otherwise>
                                                                        <option value="${kv.key }" >${kv.value }</option>
                                                                    </c:otherwise>
                                                                </c:choose>
                                                            </c:forEach>
                                                        </select>
                                                    </div>
                                                </td>
                                                <td class="td">
                                                    <div>
                                                        <input name="teamCertNo" id="teamCertNo" type="text" readonly="readonly" value="${item.certNo}" >
                                                    </div>
                                                </td>
                                                <td class="td">
                                                    <div>
                                                        <input name="teamMp1" id="teamMp1" type="text" readonly="readonly" value="${item.mp1}" >
                                                    </div>
                                                </td>

                                            </tr>
                                        </c:forEach>
                                    </c:when>

                                </c:choose>
                                </tbody>
                            </table>
                        </div>
                    </div>
                    <div class="btnsBox">
                        <input name="cId" id="cId" type="text" style="display: none;" value="${id}"/>
                        <!-- <span id="saveBtn1" class="sq-button sq-button-hasicon"><i class="sqBtnIco_10"></i>保存</span> -->
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>

<script>
    var pageInApp={}; // to 下一级子窗口 接口
    var pageInTab=null;
    var loadedTabs=[]
    $(function() {
        pageInTab = $("#pageInTab").ligerTab({
            height: 'auto',
            contextmenu: false,
            minIframeHeight: GET_minIframeHeight(),
            onAfterSelectTabItem: function(tabid) {
                if (loadedTabs.indexOf(tabid)<0) {
                    var _cId = $("#cId").val();
                    var _cstNm = $("#cstNm").html();
                    loadedTabs.push(tabid);
                    switch (tabid){
                        case "tabB":
                            pageInTab.setTabItemSrc(tabid, "<%=path%>/customer/cstbscinfo/toCustCstBacInfoCorpEpRecordDetailPage.do?cstId="+_cId);
                            break;
                        case "tabH":
                            var parms = "?cstId="+_cId+"&cstNm="+_cstNm;
                            pageInTab.setTabItemSrc(tabid,"<%=path%>/customer/cstbscinfo/toCstProjectDetailPage.do"+parms);
                            break;
                        case "tabP":
                            var rlAttrNm = $("#cstRlTypNm").text();
                            if(rlAttrNm.search("担保人") != -1){
                                var parms = "?cstId="+_cId+"&cstNm="+_cstNm;
                                pageInTab.setTabItemSrc(tabid,"<%=path%>/customer/cstbscinfo/toPrjCstBscDetailPage.do"+parms);
                            }else{
                                $.ligerDialog.SQalert({content:"该客户不是担保人，无担保项目！", SQ_type: "error"});
                            }
                            break;
                        case "tabC":
                            pageInTab.setTabItemSrc(tabid,"<%=path%>/customer/cstbscinfo/toCustCstBacInfoEpAssetPage.do?cstId="+_cId);
                            break;
                        case "tabD":
                            pageInTab.setTabItemSrc(tabid,"<%=path%>/customer/cstbscinfo/toCstCreditPage.do?cstId="+_cId);
                            break;
                        case "tabE":
                            pageInTab.setTabItemSrc(tabid,"<%=path%>/customer/cstbscinfo/toFilFinanceDebtDetailPage.do?cstId="+_cId);
                            break;
                        case "tabF":
                            pageInTab.setTabItemSrc(tabid,"<%=path%>/customer/cstmidmaninfo/toDetailListPage.do?cstId="+_cId);
                            break;
                        case "tabG":
                            pageInTab.setTabItemSrc(tabid,"<%=path%>/customer/cstcommrec/toDetailListPage.do?cstId="+_cId);
                            break;
                        case "tabI":
                            pageInTab.setTabItemSrc(tabid, "<%=path%>/customer/cstbank/toCustCstBacInfoCorpBankDetailListPage.do?cstId="+_cId);
                            break;
                        case "tabK":
                            var parms = "?cstId=" + _cId + "&cstNm=" + _cstNm;
                            pageInTab.setTabItemSrc(tabid, "<%=path%>/risk/rskCstSignLog/toListPage.do" + parms);
                            break;
                        case "tabL":
                            var parms = "?Id=" + _cId + "&useType=1&cstType=2";
                            pageInTab.setTabItemSrc(tabid,"<%=path%>/customer/cstManualRelation/toListPage.do"+parms);
                            break;
                    }
                };
                SetIframe_height();
            }
        });

        $.extend(true, pageInApp, {
            pageInTab: pageInTab
        });
    })

    $(function() {
        $("#formSet1").ligerForm({
            validate: true
        });

        $("#addMember_formSet .l-dialog-btn-ok").click(function(event) {
            var ligerForm = liger.get("addMember_formSet");
            if (!ligerForm.valid()) {
                $.ligerDialog.SQalert({content: LogUtils.LOG_CMM_MUST_FIX_ITEM_INFO,SQ_type: "warning"});
                return false; //验证不通过，不执行以下代码
            }
            //var data = ligerForm.getData();
            //alert(JSON.stringify(data));
            //$.ligerDialog.hide();
            //$.ligerDialog.SQalert({content: LogUtils.LOG_CMM_ADD_SUCC,SQ_type: "success"});
            //clearLigerForm ($(this).parents("form").attr("ligeruiid"));
        });

        //修改初始化数据
        initData();
    })

    //修改初始化数据
    function initData(){
        var _id = $("#cId").val();
        if(!_id)return;
        var wait_dialog= $.ligerDialog.SQalert({
            content: LogUtils.LOG_CMM_LOADING,
            SQ_type: "waitting",
            onClose: function () {
            }
        });

        var _url = '<%=path%>/customer/cstbscinfo/getShowDetailById.do?isEncrypt=1';
        $.ajax({
            type: 'get',
            dataType:'json',
            data:{id:_id},
            url: _url,
            success:function(msg){
                wait_dialog.close();
                if(msg.success == 1){
                    setData(msg.data);//设置数据
                    //cstCorpTeamGrid.setParm("cstId",_id);
                    //cstCorpTeamGrid.reload();
                    //$.ligerDialog.SQalert({content: msg.info,SQ_type: "success"});
                }else{
                    $.ligerDialog.SQalert({content: msg.info,SQ_type: "error"});
                }
            }
        });
    }
    //设置页面数据
    function setData(data){
        var form = new liger.get("formSet1");

        $("#cstTypCdNm").html(data.cstTypCdNm);
        $("#certTypCd").html(data.certTypCdNm);
        $("#cstLvlCd").html(data.cstLvlCdNm);
        $("#indCdNm").html(data.indCdNm);
        $("#payTypCd").html(data.payTypCdNm);
        if(data.indCdNm == LogUtils.LOG_CUST_SELECT_OTHER_VALUE){
            $("#othIndCdDiv").removeClass('Hide');
            $("#othIndCd").html(data.othIndCd);
        }
        $("#cstCdNm").html(data.cstCdNm);
        $("#cstNm").html(data.cstNm);
        $("#cstRem").html(data.cstRem);
        $("#certNo").html(data.certNo);
        $("#cstRlTypNm").html(data.cstRlAttrNm);
        $("#cstStsCdNm").html(data.cstStsCdNm);
        $("#mp").html(data.mp);
        $("#corpTypCdNm").html(data.cstCorpBscInfoVO.corpTypCdNm);
        $("#regCapUntCdNm").html(data.cstCorpBscInfoVO.regCapUntCdNm);
        $("#paidCapUntCdNm").html(data.cstCorpBscInfoVO.paidCapUntCdNm);
        $("#corpRep").html(data.cstCorpBscInfoVO.corpRep);
        $("#taxRegNo").html(data.cstCorpBscInfoVO.taxRegNo);
        $("#bizLicNo").html(data.cstCorpBscInfoVO.bizLicNo);
        $("#regCapAmt").html(data.cstCorpBscInfoVO.regCapAmt);
        $("#paidCapAmt").html(data.cstCorpBscInfoVO.paidCapAmt);
        $("#zipNo").html(data.cstCorpBscInfoVO.zipNo);
        $("#websit").html(data.cstCorpBscInfoVO.websit);
        $("#bizScope").html(data.cstCorpBscInfoVO.bizScope);
        $("#officeAddr").html(data.cstCorpBscInfoVO.officeAddr);
        $("#regAddr").html(data.cstCorpBscInfoVO.regAddr);
        $("#postAddr").html(data.cstCorpBscInfoVO.postAddr);
        $("#othInfo").html(data.cstCorpBscInfoVO.othInfo);
        $("#loanAss").html(data.cstCorpBscInfoVO.loanAss);
        $("#shtNm").html(data.cstCorpBscInfoVO.shtNm);
        //$("#succ").html(data.cstCorpBscInfoVO.succ);
        $("#corpTax").html(data.cstCorpBscInfoVO.corpTax);
        $("#regTel").html(data.cstCorpBscInfoVO.regTel);
        $("#empQtyCdNm").html(data.cstCorpBscInfoVO.empQtyCd);
        $("#officeTel").html(data.cstCorpBscInfoVO.officeTel);
        $("#officeArea").html(data.cstCorpBscInfoVO.officeArea);
        $("#prpAttr").html(data.cstCorpBscInfoVO.prpAttr);
        $("#loanCardNo").html(data.cstCorpBscInfoVO.loanCardNo);
        $("#loanCardPwd").html(data.cstCorpBscInfoVO.loanCardPwd);
        $("#loanAss").html(data.cstCorpBscInfoVO.loanAss);
        $("#isInst").html(data.cstCorpBscInfoVO.isInstNm);
        $("#perMitNo").html(data.cstCorpBscInfoVO.perMitNo);
        $("#loanCardCd").html(data.cstCorpBscInfoVO.loanCardCd);
        $("#regStdProvCd").html(data.cstCorpBscInfoVO.regProvCdNm);
        $("#regStdCityCd").html(data.cstCorpBscInfoVO.regCityCdNm);
        $("#regStdDistCd").html(data.cstCorpBscInfoVO.regDistCdNm);
        $("#stdIndCd").html(data.cstCorpBscInfoVO.stdIndCdNm);
        $("#loanCardCd").html(data.cstCorpBscInfoVO.loanCardCd);
        $("#prpVal").html(data.cstCorpBscInfoVO.prpVal);

        if(data.cstCorpBscInfoVO){
            if(data.cstCorpBscInfoVO.regDt){
                var date = new Date(data.cstCorpBscInfoVO.regDt);
                var dateStr = DateUtils.formatDate(date, DateUtils.YYYY_MM_DD);
                $("#regDt").html(dateStr);
            }
            if(data.cstCorpBscInfoVO.expDt){
                var date = new Date(data.cstCorpBscInfoVO.expDt);
                var dateStr = DateUtils.formatDate(date, DateUtils.YYYY_MM_DD);
                $("#expDt").html(dateStr);
            }
            if(data.cstCorpBscInfoVO.corpRepBd){
                var date = new Date(data.cstCorpBscInfoVO.corpRepBd);
                var dateStr = DateUtils.formatDate(date, DateUtils.YYYY_MM_DD);
                $("#corpRepBd").html(dateStr);
            }

            if(data.cstRlAttr){
                var tempGuarTypCd = data.cstExtInfoVO.guarTypCdNm;
                var tempGuarAmt = data.cstExtInfoVO.num9;
                tempGuarAmt = NumberUtils.isScientificNotationToString(tempGuarAmt);
                if(data.cstRlAttr.indexOf(CustomerConstant.CST_RL_TYPE_DBR_CD) != -1){
                    var _url = '<%=path%>/customer/cstbscinfo/toCstGuarDetailDynamicPage.do';
                    //如果有参数则在第二个参数中传入
                    $("#cstGuarDynamicBizdiv").load(_url,{bizCd:CustomerConstant.CST_RL_TYPE_DBR_CD},function(responseText,textStatus){
                        $("#guarTypCd").html(tempGuarTypCd);
                        $("#guarAmt").html(tempGuarAmt);
                    });

                    //重新赋值使用
                    var tempMchr9Nm = data.cstExtInfoVO.mchr9;
                    _url = '<%=path%>/customer/cstbscinfo/toCstGuarDetailDynamicPageForCorp.do';
                    //如果有参数则在第二个参数中传入
                    $("#cstGuar1DynamicBizdiv").load(_url,{bizCd:CustomerConstant.CST_RL_TYPE_DBR_CD},function(responseText,textStatus){
                        $("#mchr9").html(tempMchr9Nm);
                    });

                }
            }

            //设置客户关系中的立项控制
            if(data.cstRlAttrVOList){
                $("#prjCtrlCd").html(data.prjCtrlCdNm);
            }
        }

        //设置法定代表人名称和身份证号码
        if(data.cstCorpBscInfoVO.cstCorpTeamVO){
            $("#lowerCstNm").html(data.cstCorpBscInfoVO.cstCorpTeamVO.mnm);
            $("#lowerCertNo").html(data.cstCorpBscInfoVO.cstCorpTeamVO.certNo);
        }
        if(data.cstCorpBscInfoVO.cstCorpTeamVO){
            form.setData({
                corpForCertTypCd:data.cstCorpBscInfoVO.cstCorpTeamVO.certTypCd
            });
        }
        liger.get("corpForCertTypCd").setDisabled(true);
        //辅助信息
        if(data.cstExtInfoVO){
            $("#ext_schr1").html(data.cstExtInfoVO.schr1);
            $("#ext_schr2").html(data.cstExtInfoVO.schr2);
            $("#ext_schr3").html(data.cstExtInfoVO.schr3);
            $("#ext_schr4").html(data.cstExtInfoVO.schr4);
            $("#ext_schr5").html(data.cstExtInfoVO.schr5);
            $("#ext_mchr1").html(data.cstExtInfoVO.mchr1);
            $("#ext_mchr2").html(data.cstExtInfoVO.mchr2);
            $("#ext_mchr3").html(data.cstExtInfoVO.mchr3);
            $("#ext_mchr4").html(data.cstExtInfoVO.mchr4);
            $("#ext_mchr5").html(data.cstExtInfoVO.mchr5);
            $("#ext_mchr6").html(data.cstExtInfoVO.mchr6);
            $("#ext_mchr7").html(data.cstExtInfoVO.mchr7);
            $("#ext_mchr8").html(data.cstExtInfoVO.mchr8);
            $("#ext_bchr1").html(data.cstExtInfoVO.bchr1);
            $("#ext_bchr2").html(data.cstExtInfoVO.bchr2);
            $("#ext_bchr3").html(data.cstExtInfoVO.bchr3);
            $("#ext_num1").html(data.cstExtInfoVO.num1);
            $("#ext_num2").html(data.cstExtInfoVO.num2);
            $("#ext_num3").html(data.cstExtInfoVO.num3);
            $("#ext_num4").html(data.cstExtInfoVO.num4);
            $("#ext_num5").html(data.cstExtInfoVO.num5);
            $("#ext_num6").html(data.cstExtInfoVO.num6);
            $("#ext_num7").html(data.cstExtInfoVO.num7);
            $("#ext_num8").html(data.cstExtInfoVO.num8);
            $("#ext_num9").html(data.cstExtInfoVO.num9);
            $("#ext_num10").html(data.cstExtInfoVO.num10);
            $("#ext_num11").html(data.cstExtInfoVO.num11);
            $("#ext_num12").html(data.cstExtInfoVO.num12);
            $("#ext_num13").html(data.cstExtInfoVO.num13);
            $("#ext_num14").html(data.cstExtInfoVO.num14);
            $("#ext_num15").html(data.cstExtInfoVO.num15);
        }

    }

    function deleteRow (parm, gridId) {
        $.ligerDialog.SQalert({content: LogUtils.LOG_CMM_DELETE_SUCC,SQ_type: "success"});
        var grid=liger.get(gridId);
        grid.reload();
    }
</script>
</body>
</html>